package org.lqq.serverRegisterAndFinder.serverFinder;

import org.lqq.entity.ServerAddress;

import java.util.Collection;

/**
 * Created by 李清泉 on 2017/10/26.
 *
 * @remark
 */
public interface ServerFinder {
    /**
     * 通过注册服务器将该名字的应用拉下来
     *
     * @param serverName
     * @return
     */
    Collection<ServerAddress> discoverServerAddress(String serverName);

    /**
     * 获取所有注册到注册服务器的名字
     *
     * @return
     */
    Collection<String> discoverAllRegisterdServerName();


}
